﻿namespace BreezeExtension.VSPackage.Forms
{
    using System.Windows;

    /// <summary>
    /// Interaction logic for AddDomainModule.xaml
    /// </summary>
    public partial class AddDomainModule : Window
    {
        public string DomainModuleName { get; set; }

        public AddDomainModule()
        {
            InitializeComponent();
        }

        private void btn_AddDomainModule_Click(object sender, RoutedEventArgs e)
        {
            DomainModuleName = tb_FileName.Text;
            TryClose();
        }

        private void TryClose()
        {
            if(!string.IsNullOrEmpty(DomainModuleName))
            {
                Close();
            }
        }
    }
}
